import datetime
from pathlib import Path

from loguru import logger


TIME_SMAP=datetime.datetime.now().strftime("%Y%m%d%H%M%S")

path=Path(__file__).parent
CASE_DIR=path/"case"

REPORT_PATH=path/"report"
REPORT_PATH.mkdir(exist_ok=True)

TASK_DIR=REPORT_PATH/f'{TIME_SMAP}'
TASK_DIR.mkdir()

DATA_DIR=TASK_DIR/"data"
HTML_DIR=TASK_DIR/"html"
LDG_PATH=TASK_DIR/"log"
LDG_PATH.mkdir()

LDG_FILE=LDG_PATH/'pytest.log'
logger.add(LDG_FILE)
